using System;
using System.Collections;
using System.Collections.Generic;

using MemberMgr.Data.Base;

namespace MemberMgr.Data.BusinessObjects
{
    public partial class tRight : BusinessBase<uint>
    {
        #region Declarations

		private string _righttype = String.Empty;
		private string _rightno = String.Empty;
		
		private tRole _tRole = null;
		
		
		#endregion

        #region Constructors

        public tRight() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_righttype);
			sb.Append(_rightno);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Righttype
        {
            get { return _righttype; }
			set
			{
				OnRighttypeChanging();
				_righttype = value;
				OnRighttypeChanged();
			}
        }
		partial void OnRighttypeChanging();
		partial void OnRighttypeChanged();
		
		public virtual string Rightno
        {
            get { return _rightno; }
			set
			{
				OnRightnoChanging();
				_rightno = value;
				OnRightnoChanged();
			}
        }
		partial void OnRightnoChanging();
		partial void OnRightnoChanged();
		
		public virtual tRole TRole
        {
            get { return _tRole; }
			set
			{
				OnTRoleChanging();
				_tRole = value;
				OnTRoleChanged();
			}
        }
		partial void OnTRoleChanging();
		partial void OnTRoleChanged();
		
        #endregion
    }
}
